<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>智能绿植养护系统 - 完整导学单</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background-color: white;
            color: black;
            line-height: 1.6;
            padding: 20px;
            max-width: 1000px;
            margin: 0 auto;
        }
        
        h1 {
            text-align: center;
            margin-bottom: 5px;
            font-size: 22px;
        }
        
        .subtitle {
            text-align: center;
            margin-bottom: 10px;
            font-size: 14px;
            color: #555;
        }
        
        .header-info {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-bottom: 25px;
            font-size: 13px;
        }
        
        .info-item {
            display: flex;
            align-items: center;
        }
        
        .info-label {
            margin-right: 5px;
        }
        
        .underline {
            border-bottom: 1px solid #333;
            min-width: 80px;
            display: inline-block;
            text-align: center;
        }
        
        .intro {
            margin-bottom: 20px;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 14px;
        }
        
        .learning-goal {
            margin-bottom: 20px;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 14px;
        }
        
        .section-title {
            margin: 20px 0 12px 0;
            padding-bottom: 6px;
            border-bottom: 2px solid #333;
            font-size: 18px;
        }
        
        .question-box {
            margin: 12px 0;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 14px;
            page-break-inside: avoid;
        }
        
        .question-title {
            margin-bottom: 8px;
            font-weight: bold;
        }
        
        .task-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 20px;
            border: 1px solid #333;
            font-size: 14px;
            page-break-inside: avoid;
        }
        
        .task-table th {
            background-color: #f5f5f5;
            padding: 10px 12px;
            text-align: left;
            font-weight: 600;
            border: 1px solid #333;
        }
        
        .task-table td {
            padding: 10px 12px;
            border: 1px solid #333;
        }
        
        .input-field {
            width: 100%;
            padding: 6px 8px;
            border: 1px solid #999;
            border-radius: 4px;
            font-size: 13px;
            margin: 4px 0;
        }
        
        .input-field:focus {
            border-color: #333;
            outline: none;
        }
        
        .small-input {
            width: 50px;
            padding: 3px 5px;
            border: 1px solid #999;
            border-radius: 3px;
            font-size: 12px;
            text-align: center;
            margin: 0 3px;
        }
        
        .concept-box {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin: 12px 0;
        }
        
        .concept-item {
            display: flex;
            align-items: center;
            font-size: 13px;
        }
        
        .concept-item input {
            margin-right: 4px;
        }
        
        .function-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 15px;
            margin: 15px 0;
            page-break-inside: avoid;
        }
        
        .function-card {
            border: 1px solid #333;
            border-radius: 5px;
            padding: 12px;
            font-size: 14px;
            page-break-inside: avoid;
        }
        
        .function-title {
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            font-weight: bold;
        }
        
        .function-title:before {
            margin-right: 6px;
            font-size: 20px;
        }
        
        .function-description {
            margin-bottom: 12px;
        }
        
        .component-section {
            margin-bottom: 12px;
        }
        
        .component-title {
            font-weight: bold;
            margin-bottom: 6px;
        }
        
        .component-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .logic-section {
            margin-top: 8px;
        }
        
        .logic-title {
            font-weight: bold;
            margin-bottom: 6px;
        }
        
        .logic-example {
            background-color: #f5f5f5;
            border-left: 3px solid #333;
            padding: 8px;
            font-family: 'Courier New', monospace;
            font-size: 12px;
        }
        
        .textarea-field {
            width: 100%;
            padding: 10px;
            border: 1px solid #999;
            border-radius: 6px;
            font-size: 13px;
            min-height: 70px;
            resize: vertical;
        }
        
        .footer {
            margin-top: 25px;
            text-align: center;
            font-size: 12px;
            color: #666;
        }
        
        .hint {
            font-size: 12px;
            color: #666;
            font-style: italic;
            margin-top: 4px;
        }
        
        .example-text {
            font-size: 11px;
            color: #777;
            margin-top: 2px;
        }
        
        /* 打印分页控制 */
        .page-break {
            page-break-before: always;
        }
        
        @media print {
            body {
                padding: 15px;
                font-size: 14px;
            }
            
            .header-info {
                margin-bottom: 15px;
            }
            
            .intro, .learning-goal {
                margin-bottom: 15px;
            }
            
            .section-title {
                margin: 15px 0 10px 0;
            }
            
            .question-box {
                margin: 10px 0;
                padding: 10px;
            }
            
            .task-table {
                margin-bottom: 15px;
            }
            
            .function-grid {
                margin: 12px 0;
                gap: 12px;
            }
            
            .function-card {
                padding: 10px;
            }
            
            .footer {
                margin-top: 20px;
            }
            
            /* 确保各部分不被分页断开 */
            .section-container {
                page-break-inside: avoid;
            }
        }
        
        @media (max-width: 768px) {
            body {
                padding: 10px;
            }
            
            .header-info {
                flex-direction: column;
                gap: 8px;
                align-items: center;
            }
            
            .function-grid {
                grid-template-columns: 1fr;
            }
            
            .task-table {
                font-size: 13px;
            }
            
            .task-table th,
            .task-table td {
                padding: 8px 10px;
            }
        }
    </style>
</head>
<body>
    <!-- 第一页 -->
    <div class="section-container">
        <h1>智能绿植养护系统</h1>
        <p class="subtitle">探索阶段导学单</p>
        
        <div class="header-info">
            <div class="info-item">
                <span class="info-label">班级：</span>
                <span class="underline">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
            </div>
            <div class="info-item">
                <span class="info-label">姓名：</span>
                <span class="underline">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
            </div>
            <div class="info-item">
                <span class="info-label">日期：</span>
                <span class="underline">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
            </div>
        </div>
        
        <div class="intro">
            <p>欢迎来到"小小工程师"挑战！请根据与智能助手的对话，填写这份设计笔记，记录你的创意和想法。</p>
        </div>
        
        <div class="learning-goal">
            <h2>🎯 这节课我要学会</h2>
            <p>1. 把大任务拆分成小任务</p>
            <p>2. 发现不同学科知识在项目中的作用</p>
            <p>3. 理解电脑和机器如何帮助我们照顾植物</p>
        </div>
        
        <h2 class="section-title">🔍 任务分解</h2>
        
        <div class="question-box">
            <div class="question-title">想一想：智能绿植系统需要做什么？</div>
            <p>为了让植物健康成长，我们的智能系统需要完成哪些任务？</p>
            <textarea class="textarea-field"></textarea>
            <div class="hint">💡 小提示：想一想植物需要什么，我们的系统怎么帮助它</div>
        </div>
        
        <div class="question-box">
            <div class="question-title">任务分类</div>
            <p>让我们把上面的任务分成三类：</p>
            
            <div class="concept-box">
                <div class="concept-item">
                    <input type="checkbox" id="task1">
                    <label for="task1">环境监测</label>
                </div>
                <div class="concept-item">
                    <input type="checkbox" id="task2">
                    <label for="task2">数据分析</label>
                </div>
                <div class="concept-item">
                    <input type="checkbox" id="task3">
                    <label for="task3">自动控制</label>
                </div>
            </div>
            
            <p>请解释为什么这样分类？</p>
            <textarea class="textarea-field"></textarea>
        </div>
    </div>
    
    <!-- 第二页 -->
    <div class="page-break section-container">
        <h2 class="section-title">📚 学科知识探索</h2>
        
        <table class="task-table">
            <thead>
                <tr>
                    <th width="20%">任务类型</th>
                    <th width="25%">需要什么学科知识</th>
                    <th width="30%">这些知识有什么用</th>
                    <th width="25%">信息科技的角色</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>环境监测</td>
                    <td>
                        <input type="text" class="input-field">
                        <div class="example-text">例如：科学（植物学）</div>
                    </td>
                    <td>
                        <input type="text" class="input-field">
                        <div class="example-text">例如：确定监测哪些环境因素</div>
                    </td>
                    <td>
                        <input type="text" class="input-field">
                        <div class="example-text">例如：使用传感器实现监测</div>
                    </td>
                </tr>
                <tr>
                    <td>数据分析</td>
                    <td>
                        <input type="text" class="input-field">
                        <div class="example-text">例如：数学</div>
                    </td>
                    <td>
                        <input type="text" class="input-field">
                        <div class="example-text">例如：设定阈值、比较数据</div>
                    </td>
                    <td>
                        <input type="text" class="input-field">
                        <div class="example-text">例如：编程实现逻辑判断</div>
                    </td>
                </tr>
                <tr>
                    <td>自动控制</td>
                    <td>
                        <input type="text" class="input-field">
                        <div class="example-text">例如：信息科技（编程）</div>
                    </td>
                    <td>
                        <input type="text" class="input-field">
                        <div class="example-text">例如：编写程序控制机器</div>
                    </td>
                    <td>
                        <input type="text" class="input-field">
                        <div class="example-text">例如：控制执行器动作</div>
                    </td>
                </tr>
            </tbody>
        </table>
        
        <h2 class="section-title">🧩 系统功能设计</h2>
        
        <div class="function-grid">
            <!-- 自动浇水功能 -->
            <div class="function-card">
                <div class="function-title">🌿 自动浇水功能</div>
                <div class="function-description">当土壤变干时，自动给植物浇水。</div>
                
                <div class="component-section">
                    <div class="component-title">需要的零件：</div>
                    <div class="component-list">
                        <div class="concept-item">
                            <input type="checkbox" id="component1">
                            <label for="component1">土壤湿度传感器</label>
                        </div>
                        <div class="concept-item">
                            <input type="checkbox" id="component2">
                            <label for="component2">小水泵</label>
                        </div>
                    </div>
                </div>
                
                <div class="logic-section">
                    <div class="logic-title">工作原理：</div>
                    <div class="logic-example">
                        如果 土壤湿度 <input type="text" class="small-input"> %<br>
                        那么 启动水泵 <input type="text" class="small-input"> 秒
                    </div>
                </div>
            </div>
            
            <!-- 温度调节功能 -->
            <div class="function-card">
                <div class="function-title">🌡️ 温度调节功能</div>
                <div class="function-description">当温度不合适时，自动调节温度。</div>
                
                <div class="component-section">
                    <div class="component-title">需要的零件：</div>
                    <div class="component-list">
                        <div class="concept-item">
                            <input type="checkbox" id="component3">
                            <label for="component3">温度传感器</label>
                        </div>
                        <div class="concept-item">
                            <input type="checkbox" id="component4">
                            <label for="component4">小加热器</label>
                        </div>
                        <div class="concept-item">
                            <input type="checkbox" id="component5">
                            <label for="component5">小风扇</label>
                        </div>
                    </div>
                </div>
                
                <div class="logic-section">
                    <div class="logic-title">工作原理：</div>
                    <div class="logic-example">
                        如果 温度 <input type="text" class="small-input"> °C<br>
                        那么 启动加热器<br><br>
                        如果 温度 > <input type="text" class="small-input"> °C<br>
                        那么 启动风扇
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 第三页 -->
    <div class="page-break section-container">
        <!-- 继续系统功能设计 -->
        <div class="function-grid">
            <!-- 光照调节功能 -->
            <div class="function-card">
                <div class="function-title">💡 光照调节功能</div>
                <div class="function-description">当光线不够时，自动补充光照。</div>
                
                <div class="component-section">
                    <div class="component-title">需要的零件：</div>
                    <div class="component-list">
                        <div class="concept-item">
                            <input type="checkbox" id="component6">
                            <label for="component6">光照传感器</label>
                        </div>
                        <div class="concept-item">
                            <input type="checkbox" id="component7">
                            <label for="component7">补光灯</label>
                        </div>
                    </div>
                </div>
                
                <div class="logic-section">
                    <div class="logic-title">工作原理：</div>
                    <div class="logic-example">
                        如果 光照强度 <input type="text" class="small-input"> lux<br>
                        那么 开启补光灯<br><br>
                        如果 光照强度 > <input type="text" class="small-input"> lux<br>
                        那么 关闭补光灯
                    </div>
                </div>
            </div>
        </div>
        
        <div class="question-box">
            <div class="question-title">系统合作思考</div>
            <p>这些功能如何一起工作？请描述它们怎样合作：</p>
            <textarea class="textarea-field"></textarea>
            
            <p>你觉得哪些功能最重要？哪些可以后面再加？为什么？</p>
            <textarea class="textarea-field"></textarea>
        </div>
        
        <h2 class="section-title">📊 各科知识总结</h2>
        
        <table class="task-table">
            <thead>
                <tr>
                    <th width="20%">学科</th>
                    <th width="40%">在项目中的作用</th>
                    <th width="40%">具体学到的知识</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>科学</td>
                    <td>
                        <input type="text" class="input-field">
                        <div class="example-text">例如：了解植物需要什么</div>
                    </td>
                    <td>
                        <input type="text" class="input-field">
                        <div class="example-text">例如：植物喜欢多少水、多少光</div>
                    </td>
                </tr>
                <tr>
                    <td>数学</td>
                    <td>
                        <input type="text" class="input-field">
                        <div class="example-text">例如：比较数字大小</div>
                    </td>
                    <td>
                        <input type="text" class="input-field">
                        <div class="example-text">例如：30%比20%大</div>
                    </td>
                </tr>
                <tr>
                    <td>信息科技</td>
                    <td>
                        <input type="text" class="input-field">
                        <div class="example-text">例如：让机器自动工作</div>
                    </td>
                    <td>
                        <input type="text" class="input-field">
                        <div class="example-text">例如：用程序控制传感器和执行器</div>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    
    <!-- 第四页 -->
    <div class="page-break section-container">
        <h2 class="section-title">💭 我的收获与问题</h2>
        
        <div class="question-box">
            <div class="question-title">学习收获</div>
            <p>通过这次探索，我最大的收获是：</p>
            <textarea class="textarea-field"></textarea>
            
            <p>我还想知道的问题是：</p>
            <textarea class="textarea-field"></textarea>
        </div>
        
        <div class="footer">
            <p>智能绿植养护系统 - 探索阶段导学单</p>
        </div>
    </div>
</body>
</html>